package com.codejiwei.flink.source;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * author: codejiwei
 * date: 2023/6/21
 * desc:
 **/
public class DataModel {
    private final Map<String, Class<?>> fields = new LinkedHashMap<>();

    public void addField(String name, Class<?> type) {
        fields.put(name, type);
    }

    public Map<String, Class<?>> getFields() {
        return fields;
    }
}
